#include "Generate_C_std.h"
#include "Pattern_assign_var.h"

class Pattern_assign_literal : public Pattern_assign_var
{
public:
	Expr* rhs_pattern()
	{
		rhs = new Wildcard<Literal>;
		return rhs;
	}

	void generate_code (Generate_C* gen)
	{
		assert (!agn->is_ref);
		INST (buf, "assign_expr_literal", lhs->value, rhs->value);
	}

public:
	Wildcard<Literal>* rhs;
};

CREATE(Pattern_assign_literal);
